import socket
import time


def red_socket():
    global red_host,red_port,red_socket
    red_host = '192.168.195.71'
    red_port = 9999
    red_socket = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
    red_socket.connect((red_host, red_port))
    print("connect successful")
